<%@ page import="com.ecable.daoImpl.*"%>
<%@ page errorPage="UserExceptionHandler.jsp"%>
<%@page import="java.util.Vector"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.ecable.bean.Profile"%>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
	<head>

		<style type="text/css">
.Title {
	font-family: Verdana;
	font-weight: bold;
	font-size: 8pt
}

.Title1 {
	font-family: Verdana;
	font-weight: bold;
	font-size: 8pt
}
</style>

		<script language="JavaScript" src="scripts/gen_validatorv31.js"
			type="text/javascript"></script>
		<script language="JavaScript" type="text/javascript"
			src="scripts/ts_picker.js"></script>
		<script language="JavaScript1.1" src="scripts/pass.js">


</script>
		<script type="text/javascript" src="scripts/image.js"> </script>
		<script type="text/javascript" src="scripts/general.js"> </script>
		<script type="text/javascript" src="scripts/adi.js"> </scri pt>
		<script type="text/javascript" src="scripts/form_validation.js"> </script>

		<script language="JavaScript" src="images/javascripts.js"></script>
		<script language="JavaScript" src="images/pop-closeup.js"></script>
	</head>
	<body>
		<jsp:include page="Header.jsp"></jsp:include>


		<%
			String status = (String) request.getAttribute("status");

			//Profile aprofile = new ProfileDAO().getProfile(path, user);
		%>
		<center>
			<b>View Comlplaints For Reply</b>

			<table border=1>
				<tr>

					<th>
						Userid
					</th>

					<th>
						Firstname
					</th>

					<th>
						ComplaintDescription

				</th>

					<th>
						Complaint
						<br>
						Date

					</th>
					<th>
						Complaint
						<br>
						Reply

					</th>
					<th>
						Complaint
						<br>
						status(click Reply)
			</th>
				</tr>
				<%
					Vector c = (Vector) request.getAttribute("vpf");
					Iterator it = c.listIterator();
					while (it.hasNext()) {
						Profile vpf = (Profile) it.next();
				%>



				<tr>

					<td>
						<%=vpf.getUserid()%>

					</td>


					<td>
						<%=vpf.getFirstname()%>

					</td>


					<td>
						<%=vpf.getCmpdicription()%>

					</td>


					<td>
						<%=vpf.getCmpdate()%>

					</td>

					<td>
						<%=vpf.getCmpreply()%>

					</td>
					<td>
						<%=vpf.getCmpstatus()%><a
							href="./ReplyComplaint.jsp?userid=<%=vpf.getUserid()%>&cmpdiscription=<%=vpf.getCmpdicription()%>&cmpid=<%=vpf.getCmpid()%>"><b>(Reply)</b>
						</a>

					</td>

				</tr>
				<%
					}
				%>
			</table>
		</center>
		<br><br><br><br><br><br><br><br><br><br>
		<jsp:include page="Footer.jsp"></jsp:include>
	</body>
</html>